
//------------------------------------------------------------------------------

using Apps.Models;
using System;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;

namespace Apps.Models.PUB
{

    public partial class PUB_EQUIPMENTModel : Virtual_PUB_EQUIPMENTModel
    {
        public ICollection<DEV_CHECK> DEV_CHECK { get; set; }
        public ICollection<DEV_COME> DEV_COME { get; set; }
        public ICollection<DEV_EXPERIENCE> DEV_EXPERIENCE { get; set; }
        public ICollection<DEV_GREASE> DEV_GREASE { get; set; }
        public ICollection<DEV_MEMORABILIA> DEV_MEMORABILIA { get; set; }
        public ICollection<DEV_SPARE> DEV_SPARE { get; set; }
        public ICollection<DEV_TECHNICAL> DEV_TECHNICAL { get; set; }
    }

    public class Virtual_PUB_EQUIPMENTModel
    {
        [Key]
        [StringLength(40)]
        [Display(Name = "设备编号")]
		public virtual string EQUIPMENT_ID { get; set; }
        [Required]
        [StringLength(50)]
		[Display(Name = "设备名称")]
		public virtual string EQUIPMENT_NAME { get; set; }
        [Required]
        [StringLength(50)]
        [Display(Name = "规格型号")]
        public virtual string MODELTYPE { get; set; }
        [StringLength(20)]
        [Display(Name = "KKS编码")]
		public virtual string KKS_CODE { get; set; }
		[Display(Name = "出厂日期")]
		public virtual DateTime FDATE { get; set; }
        [Required]
        [StringLength(50)]
        [Display(Name = "生产厂家")]
		public virtual string PRODOCTION { get; set; }
        [Required]
        [StringLength(50)]
        [Display(Name = "出厂编号")]
		public virtual string FCODE { get; set; }
        [Required]
        [StringLength(50)]
        [Display(Name = "安装单位")]
		public virtual string COMPANY { get; set; }
        [Required]
        [StringLength(50)]
        [Display(Name = "安装地点")]
		public virtual string PLACE { get; set; }
        [StringLength(50)]
        [Display(Name = "设备类型")]
		public virtual string FIXING_TYPE { get; set; }
		[Display(Name = "投产日期")]
		public virtual DateTime USED_DATE { get; set; }
		[Display(Name = "检定周期(月)"), RangeAttribute(1, 9999)]
		public virtual int CYCLE { get; set; }
        [StringLength(40)]
        [Display(Name = "责任部门")]
		public virtual string DEPARTMENT_ID { get; set; }
        [StringLength(40)]
        [Display(Name = "填写人")]
		public virtual string USER_ID { get; set; }
		[Display(Name = "填写时间")]
		public virtual DateTime? UPDATE_DATE { get; set; }

      
    }
}
